/**
 * Created by windo on 2016/11/22.
 */

function add(x,y=0) {
    return x+y;
}
function add1(...arg) {
    let res=0;
    for(let i=arg.length-1;i>=0;i--)
    {
        res+=arg[i];
    }
    return res;
}

let res=add(1,undefined)
let res1=add1(1,3,4,5)
console.log(res)
console.log(res1)
let arg=[1.23,65,189];
let m = Math.max(...arg);
console.log(m)

